package com.br.testes;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.sql.Date;

import com.br.controller.UserControl;

public class UserControlTeste {
	
	private static UserControl userControl = new UserControl();
	
	public static void main(String[] args) {
		SimpleDateFormat formatador = new SimpleDateFormat("dd/MM/yyyy");  
		String str = "09/01/2007";  
		  
		java.util.Date data;
		
		Date d = null;
		try {
			data = formatador.parse(str);
			d = new Date(data.getTime());

		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		System.out.println(d);
		
		//userControl.createUser("nmUser", "use", "password", "s", 1);
//		userControl.logar("teste", "password");
//		userControl.logOff("teste", d);
	}
}
